package com.rgs.gateway.authentication.server.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "auth_user_info")
public class UserPO implements Serializable {
    @ApiModelProperty(value = "公钥）")
    private String appKey;
    @ApiModelProperty(value = "私钥）")
    private String appSecret;
    @ApiModelProperty(value = "来源编码")
    private Integer sourceCode;
    @ApiModelProperty(value = "来源方名称）")
    private String sourceName;
    @ApiModelProperty(value = "资源方（例如： 1：交易网关 2：数据网关）")
    private Integer resourceCode;
    @ApiModelProperty(value = "资源方标识 例如：交易网关：tgs")
    private String resourceIdentifier;
    @ApiModelProperty(value = "是否验签（0：否 1：是）")
    private Integer isSign;
    @ApiModelProperty(value = "验签类型（1、接口文档模板验签方式）")
    private Integer signType;
    @ApiModelProperty(value = "是否加密（0：否 1：是）")
    private Integer isEncrypt;
    @ApiModelProperty(value = "加密类型（1、接口文档模板加密方式）")
    private Integer encryptType;
    @ApiModelProperty(value = "预留字段")
    private String additionalInfo;
    @ApiModelProperty(value = "备注")
    private String remarks;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除（0：否 1：是）")
    private Integer isDelete = 0;
}
